<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="memory.*,java.lang.management.OperatingSystemMXBean,java.lang.management.GarbageCollectorMXBean,java.util.*"%>
<html>
<head>
<script type="text/javascript" src="<%= getServletContext().getContextPath() %>/js/scripts.js"></script>
<script type="text/javascript" src="<%= getServletContext().getContextPath() %>/js/jquery-1.2.1.js"></script>
<link rel="stylesheet" type="text/css" href="<%= getServletContext().getContextPath() %>/css/style.css" >
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script>
  $(document).ready(function(){
        $("div").slideDown("slow");
    });
 </script>
</head>
<body>
<% JvmInformation jvmobj = (JvmInformation)request.getAttribute("jvmobj"); %>
<div class="title"> Garbage Collector </div>
<div class="info">
<table>

	<tr>
		<td align=center>
			<b>Garbage Collector</b>
		</td>
	</tr>
	<tr>
		<td>
			<ul>
			<% List <GarbageCollectorMXBean> listgcb=jvmobj.getGcmxbean();
			for (int i=0; i<listgcb.size();i++){
	  			%>
	  			<li>Name: '<%= listgcb.get(i).getName() %>', Collections= <%= listgcb.get(i).getCollectionCount()%>
	  			, Time spent= <%= listgcb.get(i).getCollectionTime()/1000 %>,<%= listgcb.get(i).getCollectionTime()%1000%> seconds
	  			</li>
	  		<%}
			%>
			</ul>
		</td>
	</tr>
 
</table>
</div>
</body>
</html>